from presenter import basepresenter

class AdminDocumentPresenter(basepresenter.BasePresenter):

    def respondToGet(self):
        #get the articles
        documents = self.doctask.getAll()
        self.template_values['documents'] = documents

        # set up the page title
        page_title = self.sitetitle + ' - Document Admin'
        self.template_values['page_title'] = page_title

        #get the view to draw the page
        self.view.showGetResponse(self.template_values)